const http=require('http')
http.createServer(function(req,res){
	console.log('request come',req.url)
	res.writeHead(200,{
		'Access-Control-Allow-Origin':'http://127.0.0.1:8888',
		'Access-Control-Allow-Headers':'my-test-cors',
		'Access-Control-Allow-Methods':'PUT,DELETE',
		'Access-Control-Max-Age':'5',//时间内不用预请求
	})
	res.end('111211')
}).listen(8889)
console.info('listen on 8889');